/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sunsite.tools;

import java.util.Random;

/**
 *
 * @author Ruby
 */
public class UserIdentifier {

    public static String newUserIdentifier() {
        return "usr"+System.nanoTime();
    }

    public static String newPassword(int length)
    {
        StringBuffer psw = new StringBuffer(length);
        Random rand = new Random();
        for(int i=0;i<length;i++)
        {
            psw.append(String.valueOf(rand.nextInt(9)));
        }
        return psw.toString();
    }
}
